import http from "@/api";

/**
 * @name 登录模块
 */
// 用户登录
export const loginApi = (params:object) => {
  return http.post(`/api/login`, params, { loading: false }); 
};

// 用户退出登录
export const logoutApi = () => {
  return http.post(`/api/logout`);
};
